package net.worldscale.xp.wslib.urm.io;

import java.io.IOException;
import net.worldscale.xp.wslib.urm.HttpConst;

public interface IHttpConnection extends IContentConnection, HttpConst {

    long getDate() throws IOException;

    long getExpiration() throws IOException;

    String getFile();

    String getHeaderField(int n) throws IOException;

    String getHeaderField(String name) throws IOException;

    long getHeaderFieldDate(String name, long def) throws IOException;

    int getHeaderFieldInt(String name, int def) throws IOException;

    String getHeaderFieldKey(int n) throws IOException;

    String getHost();

    long getLastModified() throws IOException;

    int getPort();

    String getProtocol();

    String getQuery();

    String getRef();

    String getRequestMethod();

    String getRequestProperty(String key);

    int getResponseCode() throws IOException;

    String getResponseMessage() throws IOException;

    String getURL();

    void setRequestMethod(String method) throws IOException;

    void setRequestProperty(String key, String value) throws IOException;
}
